<!DOCTYPE html>
<html lang="cn-Zh">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生信息修改页面</title>
    <style>
        * {
            text-align: center;
            background: #E7F5FE;
        }

        div h1 {
            text-align: center;
            font-size: 50px;
        }

        #error_message {
            text-align: center;
            font-size: 30px;
            color: red;
        }

        form {
            margin: 0 auto;
            width: 600px;
        }

        div form label {
            font-size: 30px;
        }

        div form .cha {
            width: 400px;
            height: 50px;
            font-size: 30px;
            padding: 10px;
            margin-top: 20px;
            margin-left: 10px;
            border-radius: 10px;
        }

        div form #cha {
            font-size: 30px;
            margin: 5px;
            padding: 10px;
            border-radius: 10px;
            background: lightskyblue;
            float: right;
            border: 0px;
        }

        #cha:hover {
            cursor: pointer;
        }

        #back {
            text-decoration: none;
            color: inherit;
            font-size: 30px;
            margin: 5px;
            padding: 10px;
            border-radius: 10px;
            background: lightsalmon;
            float: left;
        }
    </style>
</head>

<body>

    <div>
        <h1>修改学生信息</h1>
        <form action="/cha/{{user.sid}}" method="post">
            <label>学号:<input type="text" name="sid" class="cha" value="{{user.sid}}" readonly="readonly"></label><br>
            <label>姓名:<input type="text" name="name" class="cha" value="{{user.name}}"></label><br>
            <label>年龄:<input type="text" name="age" class="cha" value="{{user.age}}"></label><br>
            <label>性别:<input type="text" name="gender" class="cha" value="{{user.gender}}"></label><br>
            <p id="error_message">{{error_message}}</p>
            <a href="/" id="back">返回上一页</a>
            <input type="submit" value="修改" id="cha">
        </form>
    </div>


</body>

</html>